<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>目标检测系统</title>
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.min.css">
    <style>
        body {
            padding: 20px;
            background-color: #f8f9fa;
        }
        .main-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        .nav-card {
            margin-bottom: 20px;
            transition: transform 0.3s;
        }
        .nav-card:hover {
            transform: translateY(-5px);
        }
        .card-title {
            color: #007bff;
        }
    </style>
</head>
<body>
<div class="main-container">
    <h1 class="text-center mb-4">目标检测系统</h1>
    
    <div class="row">
        <div class="col-md-6">
            <div class="card nav-card">
                <div class="card-body text-center">
                    <h5 class="card-title">图片检测</h5>
                    <a href="/toUpload" class="btn btn-primary">进入</a>
                </div>
            </div>
        </div>
        
        <div class="col-md-6">
            <div class="card nav-card">
                <div class="card-body text-center">
                    <h5 class="card-title">视频检测</h5>
                    <a href="/video" class="btn btn-primary">进入</a>
                </div>
            </div>
        </div>
        
        <div class="col-md-6">
            <div class="card nav-card">
                <div class="card-body text-center">
                    <h5 class="card-title">检测结果</h5>
                    <a href="/detections" class="btn btn-primary">进入</a>
                </div>
            </div>
        </div>
        
        <div class="col-md-6">
            <div class="card nav-card">
                <div class="card-body text-center">
                    <h5 class="card-title">数据可视化</h5>
                    <a href="/visualization" class="btn btn-primary">进入</a>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>